using System;
using System.Collections;
using System.Collections.Generic;
using UnityChan;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(CameraController))]
public class SceneEditor : Editor
{
    private void OnSceneGUI()
    {
        //EventProcess();
    }

    private void EventProcess()
    {
        CameraController tp=target as CameraController;
        Handles.color=Color.yellow;
        Handles.DrawWireDisc(new Vector3(tp.transform.parent.position.x,tp.transform.position.y,tp.transform.parent.position.z), Vector3.up, Vector2.Distance(new Vector2(tp.transform.localPosition.x,
                tp.transform.localPosition.z),
            Vector2.zero));
        Handles.color=Color.black;
        Handles.ArrowHandleCap(0, tp.transform.position, tp.transform.rotation, 2, EventType.Repaint);
    }
}
